package com.reeygu.item;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.thymeleaf.spring5.view.ThymeleafViewResolver;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2()
@SpringBootApplication
@MapperScan("com.reeygu.item.mapper")
public class ItemApplication {

    public static void main(String[] args) {
        SpringApplication.run(ItemApplication.class, args);
    }

    @Bean
    public ThymeleafViewResolver thymeleafViewResolver() {
        return new ThymeleafViewResolver();
    }
}
